package com.aj.databases.entry;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "family")
public class Family implements Serializable {
	private static final long serialVersionUID = 8598706475746940697L;
	public static final String ID = "id";
	public static final String USER_ID = "userid";
	public static final String CALL_ID = "callId";
	public static final String CALL_NAME = "callName";
	public static final String PHOTO_URL = "photo_url";
	public static final String PHOTO_PATH = "photo_path";
	public static final String MARRIED_STRING = "isMarried";
	public static final String AGE_STRING = "age";
	public static final String IS_PRIVATE = "isPrivate";

	@DatabaseField(generatedId = true, useGetSet = true, columnName = ID)
	private Integer id;
	@DatabaseField(useGetSet = true, columnName = USER_ID)
	private String userid;
	@DatabaseField(useGetSet = true, columnName = CALL_ID)
	private String callId;
	@DatabaseField(useGetSet = true, columnName = CALL_NAME)
	private String callName;
	@DatabaseField(useGetSet = true, columnName = PHOTO_URL)
	private String photo_url;
	@DatabaseField(useGetSet = true, columnName = PHOTO_PATH)
	private String photo_path;
	@DatabaseField(useGetSet = true, columnName = MARRIED_STRING)
	private Integer isMarried;
	@DatabaseField(useGetSet = true, columnName = AGE_STRING)
	private Integer age;
	@DatabaseField(useGetSet = true, columnName = IS_PRIVATE)
	private Integer isPrivate = 1;
	@DatabaseField(foreign = true, foreignAutoRefresh = true, columnName = Home.ID)
	private Home home;

	public Family() {

	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getCallId() {
		return callId;
	}

	public void setCallId(String callId) {
		this.callId = callId;
	}

	public String getCallName() {
		return callName;
	}

	public void setCallName(String callName) {
		this.callName = callName;
	}

	public String getPhoto_url() {
		return photo_url;
	}

	public void setPhoto_url(String photo_url) {
		this.photo_url = photo_url;
	}

	public String getPhoto_path() {
		return photo_path;
	}

	public void setPhoto_path(String photo_path) {
		this.photo_path = photo_path;
	}

	public Integer getIsMarried() {
		return isMarried;
	}

	public void setIsMarried(Integer isMarried) {
		this.isMarried = isMarried;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Home getHome() {
		return home;
	}

	public void setHome(Home home) {
		this.home = home;
	}

	public Integer getIsPrivate() {
		return isPrivate;
	}

	public void setIsPrivate(Integer isPrivate) {
		this.isPrivate = isPrivate;
	}

}
